| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Manager.h
1 // Manager.h
3 //
5
6 namespace nkGraphics
7 {
11 template <typename T>
12 class Manager
13 {
14 public :
15
16 // Memory management
23 T* createOrRetrieve (nkMemory::StringView name) ;
31 T* record (nkMemory::StringView name, nkMemory::UniquePtr<T> resource) ;
38 T* get (nkMemory::StringView name) const ;
48 T* getByIndex (unsigned int index) const ;
55 void rename (nkMemory::StringView currentName, nkMemory::StringView newName) ;
61 void erase (nkMemory::StringView name) ;
68 nkMemory::UniquePtr<T> relinquish (nkMemory::StringView name) ;
69 } ;
70 }
nkGraphics::Manager::getByIndex
T * getByIndex(unsigned int index) const
nkGraphics::Manager::record
T * record(nkMemory::StringView name, nkMemory::UniquePtr< T > resource)
nkGraphics::Manager::erase
void erase(nkMemory::StringView name)
nkGraphics::Manager::createOrRetrieve
T * createOrRetrieve(nkMemory::StringView name)
nkGraphics::Manager
Base class for resource managers.
Definition: Manager.h:13
nkGraphics::Manager::relinquish
nkMemory::UniquePtr< T > relinquish(nkMemory::StringView name)
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::Manager::rename
void rename(nkMemory::StringView currentName, nkMemory::StringView newName)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::Manager::get
T * get(nkMemory::StringView name) const